<?php


namespace App\Http\Controllers\android\model;


use Illuminate\Support\Facades\DB;

class TeacherAppModel
{
    public static function queryLikeGet($where,$field){
        return DB::table('t_teacher_app as t')
            ->leftJoin('t_app_install as a','t.id','=','a.teacher_app_id')
            ->where("$where[field]",'like','%'.$where["$where[field]"].'%')
            ->get($field);
    }

    public static function queryFirst($where,$field){
        return DB::table('t_teacher_app')->where($where)->first($field);
    }

}